net.sf.webphotos.gui.util
Interface WebPhotosDelegate

All Known Implementing Classes:
WebPhotosDelegate, WebPhotosDelegate

public interface WebPhotosDelegate

Author:
Guilherme

Method Summary
 void addPhotosToAlbumAndCheck(String[] fileNames, String buttonName, File folderNameToVerify, String fileDialogName)
           
 void checkButtonHasText(String button, String textShown)
          Tests Button Text
 void checkComboBoxHasText(String comboBoxName, String textShown)
          Tests Combox Text
 void checkIsButtonEnabled(String button)
          Tests Button
 void checkNewAlbum()
          It validates album insertion
 void fillAlbumForm(String albumTitle, String albumDescription, String categoryName, Map<String,String[]> photoData)
          Fill up a new album using a pre-defined category, credits and added photos
 void fillModalWithText(String buttonName, String modalTittle, String data)
          Writes text to a Modal Dialog
 void setUp()
           
 void setUpClass()
          Prepare all tests
 void tearDownClass()
          Dispose all tests
 void validateMainWindowIsPresent()
          Tests mainWindow
 

Method Detail

addPhotosToAlbumAndCheck

void addPhotosToAlbumAndCheck(String[] fileNames,
                              String buttonName,
                              File folderNameToVerify,
                              String fileDialogName)
                              throws RuntimeException
Parameters:
fileNames -
buttonName -
folderNameToVerify -
fileDialogName -
Throws:
RuntimeException - no errors allowed

checkButtonHasText

void checkButtonHasText(String button,
                        String textShown)
                        throws RuntimeException
Tests Button Text

Parameters:
button -
textShown -
Throws:
RuntimeException - no errors allowed

checkComboBoxHasText

void checkComboBoxHasText(String comboBoxName,
                          String textShown)
                          throws RuntimeException
Tests Combox Text

Parameters:
comboBoxName -
textShown -
Throws:
RuntimeException - no errors allowed

checkIsButtonEnabled

void checkIsButtonEnabled(String button)
                          throws RuntimeException
Tests Button

Parameters:
button -
Throws:
RuntimeException - no errors allowed

fillModalWithText

void fillModalWithText(String buttonName,
                       String modalTittle,
                       String data)
                       throws RuntimeException
Writes text to a Modal Dialog

Parameters:
buttonName -
modalTittle -
data -
Throws:
RuntimeException - no errors allowed

setUpClass

void setUpClass()
                throws Exception
Prepare all tests

Throws:
Exception - no errors allowed

tearDownClass

void tearDownClass()
                   throws Exception
Dispose all tests

Throws:
Exception - no errors allowed

validateMainWindowIsPresent

void validateMainWindowIsPresent()
Tests mainWindow


setUp

void setUp()

fillAlbumForm

void fillAlbumForm(String albumTitle,
                   String albumDescription,
                   String categoryName,
                   Map<String,String[]> photoData)
Fill up a new album using a pre-defined category, credits and added photos

Parameters:
albumTitle -
albumDescription -
categoryName -
photoData -

checkNewAlbum

void checkNewAlbum()
It validates album insertion



Copyright © 2008-2012. All Rights Reserved.